{{!--
Copyright (C) 2017 Draios inc.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
--}}

<div class="wsd-page__content">
    <div class="wsd-welcome">
        <div class="wsd-welcome__hero">
            <img src="{{rootURL}}assets/images/sysdig-inspect-logo-color-620x96.png">
        </div>
        <div class="wsd-welcome__body">
            <div class="wsd-welcome__card-list">
                <div class="wsd-welcome__card">
                    <div class="wsd-welcome__card-header">
                        Capture
                    </div>
                    <div class="wsd-welcome__card-content">
                        <p>
                            Capture all of the system events on a Linux box with sysdig:
                        </p>
                        <code class="wsd-welcome__code">
                            sudo sysdig -w file.scap
                        </code>
                    </div>
                    <div class="wsd-welcome__card-footer">
                        <a href="https://github.com/draios/sysdig/wiki/Sysdig-User-Guide" class="sd-button sd-button--lg sd-button--raised" target="_blank">User guide</a>
                    </div>
                    <div class="wsd-welcome__card-extra-footer">
                    </div>
                </div>

                <div class="wsd-welcome__card">
                    <div class="wsd-welcome__card-header">
                        Inspect
                    </div>
                    <div class="wsd-welcome__card-content">
                        Sysdig Inspect works with trace files that have been collected by sysdig on a Linux system.
                    </div>
                    <div class="wsd-welcome__card-footer">
                        {{#if isElectron}}
                            <SdButton @iconName="file_black" @classNames="sd-button--raised" @size="lg" @title="Open capture" @click={{route-action "openFileBrowser"}}>
                                Open Capture
                            </SdButton>
                        {{else}}
                            <SdInput @name="file-path" @placeholder="Capture file path" @isAcceptChangeMode={{true}} @changeValue={{route-action "openFile"}} />
                        {{/if}}
                    </div>
                    <div class="wsd-welcome__card-extra-footer">
                        {{#if isElectron}}
                            or try one of the
                            <LinkTo @route="capture" @model="capture-samples/502Error.scap">capture</LinkTo>
                            <LinkTo @route="capture" @model="capture-samples/404Error.scap">samples</LinkTo>
                        {{/if}}
                    </div>
                </div>
                <div class="wsd-welcome__card">
                    <div class="wsd-welcome__card-header">
                        Participate
                    </div>
                    <div class="wsd-welcome__card-content">
                        Join the Slack channel for discussions, help and announcements.
                    </div>
                    <div class="wsd-welcome__card-footer">
                        <a href="https://slack.sysdig.com" class="sd-button sd-button--lg sd-button--raised" target="_blank">slack.sysdig.com</a>
                    </div>
                    <div class="wsd-welcome__card-extra-footer">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
